package cn.cjxy.mapper;

import cn.cjxy.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    List<User> findAll(@Param("username") String username,@Param("address") String address);
    //根据用户名查询用户
    public User findByUsername(String username);

    User findUserById(Integer id);

    void update(User user);

    void delete(Integer id);

    void save(User user);
}
